﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using KPageCore;
using System.Reflection;
using System.IO;

namespace YSLPages
{
    public partial class PageInputEmergencyContactName : PageControlBase
    {
        public override string AppName
        {
            get
            {
                return Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
            }
        }

        public override string AssemblyDirectory
        {
            get
            {
                return Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase).Substring(6);
            }
        }

        public PageInputEmergencyContactName(string id, string cname)
        {
            Process = new ProcessInputEmergencyContactName(this, id, cname);
            InitializeComponent();
            InitializeCustomComponent<PageInputEmergencyContactName>(this);
        }

        private void GetControls()
        {
        
        }

        //初始化窗体数据
        protected override void InitCtrls()
        {
            base.InitCtrls();
            GetControls();

           
        }

        //初始化窗体数据
        public override void InitData()
        {
            SD.ClearValue();
            Process.SetValue("ActionIndex", 1);
        }

        /// <summary>
        /// 保存窗体数据(窗体本次做完后, 进入下一步之前)
        /// </summary>
        public override void UpdateData()
        {

        }

        /// <summary>
        /// 清理窗体数据(窗体本次做完后)
        /// </summary>
        public override void ClearData()
        {
            base.ClearData();
        }

        /// <summary>
        /// 窗体关闭时
        /// </summary>
        public override void Close()
        {
            base.Close();
        }

        public override void StartWork()
        {

        }

        public override void StopWork()
        {

        }

        public override void OnCountdownCompleted(object sender, EventArgs e)
        {
            
        }

        protected override void btnBack_Click(object sender, EventArgs e)
        {
            base.btnBack_Click(sender, e);
        }

        protected override void btnNext_Click(object sender, EventArgs e)
        {
            base.btnNext_Click(sender, e);
        }

        protected override void btnHome_Click(object sender, EventArgs e)
        {
            base.btnHome_Click(sender, e);
        }
    }
}
